package com.lj.sse.result;

import lombok.Data;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.concurrent.ScheduledFuture;

/**
 * @author luojing
 * @since 2025/3/26 11:38
 */
@Data
public class SseRecord {

    /**
     * 登录用户id
     */
    private Long userId;

    private String clientId;

    private SseEmitter emitter;

    private ScheduledFuture<?> scheduledFuture;

    public SseRecord(Long userId, String clientId, SseEmitter emitter) {
        this.userId = userId;
        this.clientId = clientId;
        this.emitter = emitter;
    }

}
